package com.jeomo.sys.starter.mapper;

import com.jeomo.base.starter.mapper.IBaseMapper;
import com.jeomo.sys.starter.entity.RolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 角色-菜单对照表 Mapper 接口
 * </p>
 *
 * @author jeomo
 * @since 2019-03-22
 */
@Mapper
public interface RolePermissionMapper extends IBaseMapper<RolePermission> {


    @Delete("delete from sys_role_permission where role_code = #{roleCode}")
    int deleteByRoleCode(String roleCode);

}
